package com.example.sxproject.pojo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class FinancialProduct {

    private Integer id; //编号
/*
    @NotEmpty
    @Pattern(regexp = "^\\S{7,30}$")
*/
    private String productName; //产品名称

    private String buyBeginDate; //购买起始日期
    private String buyEndDate; //购买终止日期
    private String beginDate; //产品起始日期
    private String endDate; //产品终止日期
    private Integer timeContinue; //期限
    private Integer incomeType; //收益类型
    private double beginMoney; //起购金额
    private Integer costStatus; //销售状态
    private Integer currencyType; //币种
    private Integer ocType; //开封闭类型
    private Integer riskType; //风险等级

/*
    @NotEmpty
    @Pattern(regexp = "^\\S{5,20}$")
*/
    private String institution; //发行机构

    private double lowRate; //最低年利率
    private double highRate; //最高年利率
    private Integer productStatus; //产品状态
    private String cardId; // 银行卡号
}
